﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UIWindows.Models.ParameterModels
{
    public class CollectParameterModel : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler? PropertyChanged;
        [Description("ID")]
        public int ID { get; set; }
        /// <summary>
        /// 交互名称
        /// </summary>
        [Description("工艺参数名称")]
        public string Name { get; set; } = string.Empty;
        /// <summary>
        /// PLC地址
        /// </summary>
        [Description("PLC地址")]
        public string PLCAddress { get; set; } = string.Empty;

        /// <summary>
        /// 地址长度
        /// </summary>
        [Description("地址长度")]
        public int PLCAddressLength { get; set; } = 1;

        /// <summary>
        /// 描述
        /// </summary>
        [Description("描述")]
        public string Desc { get; set; } = string.Empty;
        /// <summary>
        /// 数据类型
        /// </summary>
        [Description("数据类型")]
        public string DataType { get; set; } = string.Empty;

        /// <summary>
        /// 保留小数后几位
        /// </summary>
        [Description("保留小数后几位")]
        public int DecimalNum { get; set; } = 3;

        /// <summary>
        /// 对应本地属性
        /// </summary>
        [Description("对应本地属性")]
        public string PropertyName { get; set; } = string.Empty;
        /// <summary>
        /// 对应本地属性
        /// </summary>
        [Description("对应本地特性")]
        public string Description { get; set; } = string.Empty;
        /// <summary>
        /// 是否启用
        /// </summary>
        [Description("是否启用")]
        public bool IsEnable { get; set; } = true;

        /// <summary>
        /// 是否CCD结果
        /// </summary>
        [Description("是否CCD结果")]
        public bool IsCCDResult { get; set; } = false;


        
    }
}
